#ifndef TICKER_HPP
#define TICKER_HPP

#include "SDL.h"
#include "SDL_timer.h"

namespace sdl_engine {

class Ticker final {
public:
    Ticker() { Reset(); }
    inline void Reset() { tick_ = SDL_GetTicks(); }
    inline int Elapse() const { return SDL_GetTicks() - tick_; }

private:
    int tick_;
};

}

#endif
